package com.ldzg.blockwatcher.config.risk;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 *  风控监听配置
 *
 * @author 18310740596@163.com
 * @version V1.0.0
 * @since 2025-07-05 11:20:16
 */
@Data
@Component
@ConfigurationProperties(prefix = "risk")
public class RiskProperties {

    private Map<String, RuleConfig> rules = new HashMap<>();

    @Data
    public static class RuleConfig {
        private boolean enabled = true;
        private int score = 0;
    }
}